package com.jingdianjichi.subject.domain.convert;

import com.jingdianjichi.subject.domain.entity.SubjectInfoBo;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoBoConverter {
    SubjectInfoBoConverter INSTANCE=Mappers.getMapper(SubjectInfoBoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBo);

    List<SubjectInfoBo> convertInfoListToBoList(List<SubjectInfo> subjectInfoList);


    SubjectInfoBo convertOptionAndInfoToBo(SubjectOptionBo optionBO, SubjectInfo subjectInfo);
}
